Returns a string that consists of a specified amount of spaces.
スペース記号を指定された数繰り返した文字列を返します。
Space (n As Long)
Space (n As Integer)
String
文字列
n: Numeric expression that defines the number of spaces in the string. The maximum allowed value of n is 65535.
n:スペース記号の繰り返し数を指定するための数値表式。
Sub ExampleSpace
Sub ExampleSpace
Dim sText As String,sOut As String
Dim sText As String,sOut As String
DIm iLen As Integer
DIm iLen As Integer
iLen = 10
iLen = 10
sText = "Las Vegas"
sText = "Las Vegas"
sOut = sText & Space(iLen) & sText & Chr(13) &_
sOut = sText & Space(iLen) & sText & Chr(13) &_
sText & Space(iLen*2) & sText & Chr(13) &_
sText & Space(iLen*2) & sText & Chr(13) &_
sText & Space(iLen*4) & sText & Chr(13)
sText & Space(iLen*4) & sText & Chr(13)
msgBox sOut,0,"Info:"
msgBox sOut,0,"Info:"
End Sub
End Sub